package com.second.app.spring.configuration;


/**
 * @Author GYZ
 * @Date 2023/9/13
 * <pre>
 *
 * </pre>
 */
public class ApplicationContextDemo {

//    public static void main(String[] args) throws Exception {
//        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext("com.second.app.spring.configuration");
//        StudentConfig_ studentConfig = (StudentConfig_) ctx.getBean("StudentConfig_");
//        Student student = (Student) ctx.getBean("student");
//        System.out.println(studentConfig);
//        System.out.println(student);
//
//        Class<StudentConfig> clazz = StudentConfig.class;
//        if(clazz.isAnnotationPresent(Configuration.class)){
//            Configuration configurationAnnotation = clazz.getAnnotation(Configuration.class);
//            // 获取@Configuration注解的元数据信息
//            String value = configurationAnnotation.value(); // 如果@Configuration注解有value属性的话
//            // 输出元数据信息
//            System.out.println("Value: " + value);
//        }
//    }


}
